package com.example.product.biz.mapper;

import com.example.product.biz.domain.po.Category;
import org.apache.ibatis.annotations.Insert;

public interface CategoryMapper {
    /**
     * 添加分类
     *
     * @param category 分类
     */
    @Insert("insert into category(name, parent_id, sort, icon, create_time) values(#{name}, #{parentId}, #{sort}, #{icon}, #{createTime})")
    void insertCategory(Category category);
}
